<?php

class Homepage extends CI_Controller {
	
	function __construct()
	{
		parent::__construct();
	}

	/**
	 * Homepage
	 * */
	function index() {
		$this->load->view('homepage_view');
	}
	
	
	/**
	 * Admin controller
	 * */
	function control() {
		$this->load->model('roster_model');
		$this->load->library('table');
		$this->roster_model->refresh_users_table();

		$params['subview'] = 'subview/website_control_panel';
		$params['users_table'] = $this->roster_model->get_users_table();
		$params['table_library'] = &$this->table;

		$this->load->view('homepage_view', $params);
	}

}
